﻿<%@ Page Language="C#"  Inherits="System.Web.Mvc.ViewPage<HelfenHelfen.Web.MVC.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Log On
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
        <div class="info">
            <div class="center prefix-3 span-11 suffix-3 last">
               <div class="box">
                <div id="loginheader">
                    <img src="../Content/HelfenHelfen/img/login_text.png" alt="Login" />
                </div>
                <p>
                    Bitte geben Sie Ihren Benutzernamen und Ihr Passwort ein.
                </p>
                <% using (Html.BeginForm()) { %>
                    <div class="row">
                        <%= Html.LabelFor(m => m.UserName) %>
                        <%= Html.TextBoxFor(m => m.UserName) %>
                        <%= Html.ValidationMessageFor(m => m.UserName) %>
                    </div>
                    <div class="row">
                        <%= Html.LabelFor(m => m.Password) %>
                        <%= Html.PasswordFor(m => m.Password) %>
                        <%= Html.ValidationMessageFor(m => m.Password) %>
                    </div>  
                    <div class="row">
                        <%= Html.LabelFor(m => m.RememberMe) %>
                        <%= Html.CheckBoxFor(m => m.RememberMe, new { @class = "checkbox" })%>  
                    </div>
                    <div class="error hide">
                        <%= Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %> 
                    </div>
                    <div class="row">
                        <button type="submit" class="nofloat">Anmelden</button>
                    </div>
                <% } %>
                <p>
                    Oder <strong><%= Html.ActionLink("registrieren", "Register") %></strong> Sie sich, wenn Sie noch keinen Account haben.
                </p>
            </div><!-- .box -->
          </div><!-- .center -->
        </div><!-- .info -->

</asp:Content>
